<template>
  <j-modal :title="title" :width="1000" :visible="visible" switchFullscreen @cancel="handleCancel" :footer="null">
    <a-spin :spinning="loading">
      <a-form-model :model="form" ref="form" :rules="rules" :label-col="{ span: 8 }" :wrapper-col="{ span: 14 }">
        <a-row>
          <a-col :span="11">
            <a-form-model-item label="计划编号">
              <a-input v-model="form.indicatorName" :readOnly="true"></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="11">
            <a-form-model-item label="计划名称">
              <a-input v-model="form.indicatorName" :readOnly="true"></a-input>
            </a-form-model-item>
          </a-col>
        </a-row>
        <a-row>
          <a-col :span="11">
            <a-form-model-item label="考核类型">
              <a-input v-model="form.indicatorName" :readOnly="true"></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="11">
            <a-form-model-item label="考核周期">
              <a-input v-model="form.indicatorName" :readOnly="true"></a-input>
            </a-form-model-item>
          </a-col>
        </a-row>
        <a-row>
          <a-col :span="11">
            <a-form-model-item label="考核时间">
              <a-input v-model="form.indicatorName" :readOnly="true"></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="11">
            <a-form-model-item label="下发单位">
              <a-input v-model="form.indicatorName" :readOnly="true"></a-input>
            </a-form-model-item>
          </a-col>
        </a-row>
        <a-row>
          <a-col :span="11">
            <a-form-model-item label="考核对象">
              <a-input v-model="form.indicatorName" :readOnly="true"></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="11">
            <a-form-model-item label="指标名称">
              <a-input v-model="form.indicatorName" :readOnly="true"></a-input>
            </a-form-model-item>
          </a-col>
        </a-row>
        <a-row>
          <a-col :span="11">
            <a-form-model-item label="上限分值">
              <a-input v-model="form.indicatorName" :readOnly="true"></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="11">
            <a-form-model-item label="下限分值">
              <a-input v-model="form.indicatorName" :readOnly="true"></a-input>
            </a-form-model-item>
          </a-col>
        </a-row>
        <a-row>
          <a-col :span="11">
            <a-form-model-item label="权重%（M）">
              <a-input v-model="form.indicatorName" :readOnly="true"></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="11">
            <a-form-model-item label="基数">
              <a-input v-model="form.indicatorName" :readOnly="true"></a-input>
            </a-form-model-item>
          </a-col>
        </a-row>
        <a-row>
          <a-col :span="11">
            <a-form-model-item label="指标类型">
              <a-input v-model="form.indicatorName" :readOnly="true"></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="11">
            <a-form-model-item label="基础分值">
              <a-input v-model="form.indicatorName" :readOnly="true"></a-input>
            </a-form-model-item>
          </a-col>
        </a-row>
        <a-row>
          <a-col :span="11">
            <a-form-model-item label="考核得分">
              <a-input v-model="form.indicatorName" :readOnly="true"></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="11">
            <a-form-model-item label="任务量">
              <a-input v-model="form.indicatorName" :readOnly="true"></a-input>
            </a-form-model-item>
          </a-col>
        </a-row>
        <a-row>
          <a-col :span="12" class="textItem1">
            <a-form-model-item label="考核标准">
              <a-textarea v-model="form.reconExamineReason" :auto-size="{ minRows: 1, maxRows: 6 }" style="width: 100%"/>
            </a-form-model-item>
          </a-col>
        </a-row>
      </a-form-model>
      <div class="footerBox">
        <a-button class="btn" @click="handleCancel">取 消</a-button>
      </div>
    </a-spin>
  </j-modal>
</template>

<script>
import { getDictItemsFromCache } from '@/api/api'
import Api from '@/api/sjsk/performanceServiceQuery'

export default {
  name: 'AddIndex',
  components: {},
  props: {
    checkRow: Object,
    visible: Boolean,
  },
  data() {
    return {
      loading: false,
      isDisabled: false,
      title: '考核指标详情',
      form: {},
    }
  },
  async created() {
    this.getDetail()
  },
  mounted() {},

  methods: {
    getDetail(){
      this.$message.warning('没有接口')
    },
    handleCancel() {
      this.$emit('update:visible', false)
    },
  },
}
</script>

<style lang="less" scoped>
.col-2 {
  width: 100%;
  ::v-deep .ant-form-item-label {
    width: 15%;
  }
  ::v-deep .ant-form-item-control-wrapper {
    width: 73%;
  }
}
.dotted {
  border-top: 1px dotted #e9e9e9;
}
.footerBox {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  padding-top: 20px;
  border-top: 1px solid #e8e8e8;
}
::v-deep .ant-form {
  height: 70vh;
  overflow-y: scroll;
}
</style>
